<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.products.voiceSms.title,
  description: seoConfig.products.voiceSms.description,
  keywords: seoConfig.products.voiceSms.keywords
})

// 产品优势数据
const advantages = [
  {
    icon: 'lucide:phone',
    title: '语音播报',
    description: '电话语音播报验证码或通知内容，确保信息准确传达'
  },
  {
    icon: 'lucide:shield',
    title: '隐私保护',
    description: '通过隐私号码联系用户，保护用户和企业的隐私安全'
  },
  {
    icon: 'lucide:clock-3',
    title: '及时送达',
    description: '电话直接呼叫，不受网络限制，确保消息及时送达'
  },
  {
    icon: 'lucide:signal',
    title: '网络补充',
    description: '弥补短信、网页验证在网络不畅时接收性不足的缺点'
  },
  {
    icon: 'lucide:volume-2',
    title: '高触达率',
    description: '语音播报，用户接听即可获取信息，触达率更高'
  },
  {
    icon: 'lucide:check-circle',
    title: '准确可靠',
    description: '语音播报清晰准确，避免文字识别错误，更加可靠'
  }
]

// 行业应用场景数据
const scenarios = [
  {
    icon: 'lucide:key-round',
    title: '语音验证码',
    description: '注册登录、支付确认等场景，语音播报验证码更安全',
    color: 'from-blue-500 to-cyan-500'
  },
  {
    icon: 'lucide:bell-ring',
    title: '重要通知',
    description: '订单状态、物流信息、账户变动等重要通知语音播报',
    color: 'from-purple-500 to-pink-500'
  },
  {
    icon: 'lucide:alarm-clock',
    title: '到期提醒',
    description: '会员到期、账单逾期、还款提醒等重要事项语音提醒',
    color: 'from-green-500 to-emerald-500'
  },
  {
    icon: 'lucide:shield-alert',
    title: '风险预警',
    description: '账户异常、风险提示、安全告警等紧急情况语音通知',
    color: 'from-orange-500 to-red-500'
  },
  {
    icon: 'lucide:calendar-check',
    title: '预约提醒',
    description: '就诊预约、上门服务、会议通知等预约事项语音提醒',
    color: 'from-indigo-500 to-blue-500'
  },
  {
    icon: 'lucide:megaphone',
    title: '营销推广',
    description: '促销活动、会员权益、优惠信息等营销内容语音播报',
    color: 'from-yellow-500 to-orange-500'
  }
]
</script>

<template>
  <div class="min-h-screen">
    <!-- 顶部横幅 -->
    <ProductHero
      title="语音短信"
      description="通过隐私号码联系用户，实现两方通话，保护用户隐私，以电话语音的方式，保证了用户消息接收及时，弥补了短信、网页验证在网络不畅时接收性不足的缺点"
    />

    <!-- 产品优势 -->
    <section class="py-16 md:py-24 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-16">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            产品优势
          </h2>
          <p class="text-lg text-gray-600">
            语音通知，及时可靠更安全
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(advantage, index) in advantages"
            :key="index"
            class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group"
          >
            <div class="w-14 h-14 bg-gradient-to-br from-blue-500 to-cyan-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">
              {{ advantage.title }}
            </h3>
            <p class="text-gray-600 leading-relaxed">
              {{ advantage.description }}
            </p>
          </div>
        </div>
      </div>
    </section>

    <!-- 行业应用场景 -->
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            行业应用场景
          </h2>
          <p class="text-lg text-gray-600">
            适用于各类需要及时送达的通知场景
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(scenario, index) in scenarios"
            :key="index"
            class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden"
          >
            <!-- 悬停时的渐变背景 -->
            <div 
              class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity"
              :class="scenario.color"
            />
            
            <div class="relative">
              <div 
                class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br"
                :class="scenario.color"
              >
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">
                {{ scenario.title }}
              </h3>
              <p class="text-gray-600 leading-relaxed">
                {{ scenario.description }}
              </p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>

